From b179fb4103aebd9a1e24edcbea2b1a5dccaa31fa Mon Sep 17 00:00:00 2001 From: "lynx@idefix.cl.cam.ac.uk" Date: Thu, 19 Dec 2002 13:16:15 +0000 Subject: [PATCH] bitkeeper revision 1.7.3.35 (3e01c69fVEIt6jkFKyIwKxgETc0PNw) debug --- .../arch/xeno/drivers/dom0/dom0_memory.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c b/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c index 87fdb42142..85ccd0ba9a 100644 --- a/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c +++ b/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c @@ -336,6 +336,8 @@ int direct_disc_unmap(unsigned long from, unsigned long first_pg, int tot_pages) struct list_head * curr; struct list_head * direct_list = ¤t->mm->context.direct_list; + printk(KERN_ALERT "bd240 debug: direct_disc_unmap\n"); + curr = direct_list->next; while(curr != direct_list){ node = list_entry(curr, direct_mmap_node_t, list); @@ -348,9 +350,13 @@ int direct_disc_unmap(unsigned long from, unsigned long first_pg, int tot_pages) if(curr == direct_list) return -1; + printk(KERN_ALERT "bd240 debug: direct_disc_unmap, deleted from direct_list\n"); + list_del(&node->list); kfree(node); + printk(KERN_ALERT "bd240 debug: direct_disc_unmap, from %lx, tot_pages %lx\n", from, tot_pages); + while(count < tot_pages){ direct_zap_page_range(current->mm, from, PAGE_SIZE); from += PAGE_SIZE; -- 2.30.2